package Work4.Slay_the_Maze.Events;

import java.util.Random;
import java.util.ArrayList;

public class EventsPool {
	private ArrayList<Events> eventspool = new ArrayList<Events>();
	public EventsPool(){
		eventspool.add(new BattleEvent());
		eventspool.add(new ChooseEvent1());
		eventspool.add(new RestEvent());
		eventspool.add(new Shop());
		eventspool.add(new TreasureEvent());
		eventspool.add(new ThereisNothing());
	}
	
	public void AddEvent(Events event) {
		eventspool.add(event);
	}
	public Events RandomgetEvent() {
		Random rd=new Random();
		return eventspool.get(rd.nextInt(eventspool.size()));
	}
	public ArrayList<Events> getEventspool() {
		return eventspool;
	}
	public void setEventspool(ArrayList<Events> eventspool) {
		this.eventspool = eventspool;
	}
	
}
